#include <iostream>
#include <string>
#include <Windows.h>

using namespace std;

int main()
{
	SetConsoleCP(1251);
	setlocale(0, "ru");
	string line, word = "";
	getline(cin, line);
	line += ' ';
	int wordsCount = 0, Kir = 0, def = 0, sos = 0;
	bool hasLatin = false;
	for (char ch : line)
	{
		if (ch == ' ')
		{
			wordsCount++;
			word.clear();
			if (hasLatin = true)
				sos += 1;

		}
		else
		{
			word += ch;
			if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z')
			{
				hasLatin = true;
			}
				
		}
		if (ch == '-')
			def++;
	}
	cout << "Слов c латинскими символами: " << sos << "Слов с дефисом: " << def << "Слов: " << wordsCount << endl;
